package com.ddone.config;

import org.apache.http.client.HttpClient;
import org.apache.http.impl.client.DefaultHttpClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

/**
 * @author ddone
 * @date 2024/4/4-09:31
 */
@Configuration
public class HttpConfig {

    @Bean
    @Scope(value = "prototype")
    public HttpClient httpClient(){
        return new DefaultHttpClient();
    }
}
